package com.leaf.domain.strategy.service.rule.chain;

/**
 * @Author LEAF
 * @Create 2024/8/4 15:37
 * @Description 责任链抽象类
 * @Version 1.0
 */
public abstract class AbstractLogicChain implements ILogicChain{
    private ILogicChain next;


    @Override
    public ILogicChain appendNext(ILogicChain next) {
        this.next = next;
        return next;
    }

    @Override
    public ILogicChain next() {
        return next;
    }

    protected abstract String ruleModel();
}
